package com.bawei.library_common.mvvm

import com.bawei.library_network.RetrofitManager

/**
 * @Author : yaotianxue
 * @Time : On 2023/5/25 14:29
 * @Description : BaseRepository 仓库基类
 */
open class BaseRepository {
    /**
     * 创建对应的service api接口
     */
     fun <T> createApiService(service:Class<T>):T{
         return RetrofitManager.getRetrofit().create(service)
     }

    /**
     * 创建对应的service api接口
     */
    fun <T> createCoroutineApiService(service:Class<T>):T{
        return RetrofitManager.getCoroutineRetrofit().create(service)
    }
}